<?php

namespace App\Http\Controllers\Admin\Member;

use App\Http\Controllers\Controller;
use App\Models\MemberCard;
use App\Models\OtherOrder;
use App\Traits\Controllers\AdminTraits;
use App\Traits\Controllers\UpdateStatusTraits;
use App\Transformers\Member\OtherOrderTransFormer;
use Illuminate\Http\Request;

class OtherOrderController extends Controller
{
    //会员购买记录增删改查
    use AdminTraits;
    use UpdateStatusTraits;

    public $model = OtherOrder::class;

    public $transformer = OtherOrderTransFormer::class;

    public function index(){
        $info = $this->getQuery()
             ->pimp()
             ->with('user:id,account')
             ->paginate(10);
         return $info;
    }


}
